#pragma once

#include<QObject>
#include <include/Communication/Request.h>
#include <include/Communication/Protocol.h>
#include <QtCore/QMutex>
#include <QtCore/QWaitCondition>

class OctLight : public QObject {
Q_OBJECT
public:
    enum EyeLightPosition {
        Left, Right
    };

public:
    static OctLight *getInstance();

    void OLED_Position(quint8 x, quint8 y);

    void toggleEyeLight(EyeLightPosition position);

    //void turnOnWaiGu();

    //void turnOffWaiGu();

    void turnOnEyeLight(EyeLightPosition position);

    void turnOffEyeLight(EyeLightPosition position);

    void SLD_Off();

    void SLD_On(quint8 level);

    bool getSldStatus();

    bool getEyeLightLeftStatus();

    bool getEyeLightRightStatus();

public slots:

public:
    OctLight();
    ~OctLight();

private:
    static OctLight *instance;

    bool sldOn = false;

    bool eyeLightLeftOn = false;

    bool eyeLightRightOn = false;

    bool waiguOn = false;
};

